<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit">
	<meta http-equiv="x-ua-compatible" content="IE=edge, chrome=1">
    <title>后台管理系统</title>
	<link rel="stylesheet" href="{{asset('backsted/css/ch-ui.admin.css')}}">
	<link rel="stylesheet" href="{{asset('backsted/font/css/font-awesome.min.css')}}">
</head>
<body style="background:#F3F3F4;">
	<div class="login_box">
		<div style="height: 200px;"></div>
		<h2>欢迎使用后台管理系统</h2>
		<div class="form">
			<form class="form-horizontal" role="form" method="POST" action="{{ url('/login') }}">
				{{ csrf_field() }}
				<ul>
					<li >
					<input type="text" name="{{ config('admin.gloables.username') }}" class="text"  value="{{ old(config('admin.gloables.username')) }}"/>
						<span><i class="fa fa-user"></i></span>
					</li>
					@if ($errors->has(config('admin.gloables.username')))
						<span class="help-block">
							{{ $errors->first(config('admin.gloables.username')) }}
						</span>
					@endif
					<li>
						<input type="password" name="password" class="text" value="{{ old('password') }}"/>
						<span><i class="fa fa-lock"></i></span>
					</li>
					@if ($errors->has('password'))
						<span class="help-block">
							{{ $errors->first('password') }}
						</span>
					@endif
					<li>
						<input type="text" class="code" name="captcha"/>
						<span><i class="fa fa-check-square-o"></i></span>
						<img src="{{ captcha_src() }}" alt="验证码" onclick="this.src='{{ captcha_src() }}'+ Math.random()" style="cursor: pointer;">
					</li>
                    @if ($errors->has('captcha'))
                        <span class="help-block">
							{{ $errors->first('captcha') }}
						</span>
                    @endif
					<li>
						<input type="submit" value="立即登陆"/>
					</li>
				</ul>
			</form>
			<p><a href="{{ URL::to('/') }}">返回首页</a> &copy; 2016 Powered by <a href="{{ url('/') }}" target="_blank">{{ url('/') }}</a></p>
		</div>
	</div>
	<style>
		.help-block{ color: red; display: block; margin-top: -8px;margin-bottom:10px;}
	</style>
</body>
</html>